public class SuperDemo12 {
    public static void main(String[] args) {
        Father father = new Son();
        int money = father.money();
        System.out.println(money);
        ((Son)father).show();
    }
}

class Father {
    public String a = "abc";// a属性


    public int money() {
        System.out.println("靠经商赚钱 赚大钱");
        return 1000000;
    }


}

class Son extends Father{
    public String a = "def";
    @Override
    public int money() {
        int m = super.money()+1000;
        return m;
    }
    public void show(){
        System.out.println(super.a);
    }
}
